package com.daka.dao;

import com.daka.entity.Order;
import com.daka.mybatis.SQLMapper;
import com.daka.vo.db.OrderInfoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "orderDao")
@SQLMapper
public interface OrderDao {
    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    List<Order> selectList(@Param("bean") Order order, @Param("orderByStr") String orderByStr);

    List<Order> selectByStatement(Order record);

    int selectByStatementCount(Order record);

    int updateByPrimaryKeySelective(Order record);

    List<Order> selectByTeamId(Long orderId);

    Order selectByTransactionId(String transactionId);

    List<OrderInfoVo> findAll();

}